home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / snowboard.swf / scripts / frame_6 / PlaceObject2_290_140 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-01-15  |  444b  |  28 lines

  1. onClipEvent(enterFrame){
  2.    if(_X <= _root.super._x)
  3.    {
  4.       gotoAndStop("blank");
  5.       ok = 0;
  6.    }
  7.    else
  8.    {
  9.       ok = 1;
  10.    }
  11.    if(this.hitTest(_root.player.bleh) && _currentframe == 1)
  12.    {
  13.       gotoAndStop(2);
  14.    }
  15.    if(_currentframe != 2 && ok == 1)
  16.    {
  17.       gotoAndStop(1);
  18.    }
  19.    if(rr == 0)
  20.    {
  21.       _rotation = _rotation + 2;
  22.    }
  23.    if(rr == 1)
  24.    {
  25.       _rotation = _rotation - 2;
  26.    }
  27. }
  28.